﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ElevatorSimulator
{
    public partial class AdminUI : Form
    {
        SimUI sim;
        FloorUI floorUI;

        public AdminUI()
        {
            InitializeComponent();            
        }

        private void startSimulationBttn_Click(object sender, EventArgs e)
        {
            Building.Instance.setNumElevators(numElevatorsTb.Value);
            Building.Instance.setNumFloors(numFloorsTb.Value);

            System.Console.Beep();

            sim = new SimUI();
            sim.Visible = true;

            floorUI = new FloorUI();
            floorUI.Visible = true;
        }
    }
}
